home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12776 < prev    next >
Encoding:
Text File  |  1996-08-05  |  923 b   |  35 lines

  1. Path: news.NetVision.net.il!news
  2. From: "Poul A. Costinsky" <PoulACost@msn.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Friend template function?
  5. Date: Thu, 21 Mar 1996 16:21:37 +0200
  6. Organization: NetVision LTD.
  7. Message-ID: <315165F1.37D4@msn.com>
  8. NNTP-Posting-Host: 194.90.116.11
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
  13.  
  14. How can I define a template function to be a friend of a class?
  15. I have:
  16.  
  17. class A
  18. {
  19. //.....
  20. friend template<class TYPE> void Foo(TYPE& t);
  21. };
  22. My VC++ 4.0 complains:
  23. error C2059: syntax error : 'template'
  24. Is it MS-specific or a standart prohibites it 
  25. (sorry for ignorance -:(( ) ?
  26.  
  27. -- 
  28. Thanx,
  29. Poul.
  30.   ("`-''-/").___..--''"`-._    ~~~~~~~~~~Poul A. Costinsky~~~~~~~~~~
  31.     (`6_ 6  )   `-.  (     ).`-.__.`)      PoulACost@msn.com
  32.      (_Y_.)'  ._   )  `._ `. ``-..-'
  33.    _..`--'_..-_/  /--'_.' ,'
  34.   (il).-''  (li).'  ((!.-
  35.